package com.black.apartment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.black.common.annotation.Excel;
import com.black.common.core.domain.BaseEntity;

/**
 * 公寓属性信息对象 tb_apartment_attributes
 * 
 * @author kuan
 * @date 2024-10-08
 */
public class ApartmentAttributes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性ID，主键，自动递增 */
    private Long attributeId;

    /** 公寓ID，关联apartments表 */
    @Excel(name = "公寓ID，关联apartments表")
    private Long apartmentId;

    /** 属性名称，例如：建成年份、停车位、允许养宠物 */
    @Excel(name = "属性名称，例如：建成年份、停车位、允许养宠物")
    private String attributeName;

    /** 属性值，例如：2010年、有停车位、不允许 */
    @Excel(name = "属性值，例如：2010年、有停车位、不允许")
    private String attributeValue;

    /** 属性记录创建时间 */
    private Date createdAt;

    /** 属性记录最后更新时间 */
    private Date updatedAt;

    public void setAttributeId(Long attributeId) 
    {
        this.attributeId = attributeId;
    }

    public Long getAttributeId() 
    {
        return attributeId;
    }
    public void setApartmentId(Long apartmentId) 
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId() 
    {
        return apartmentId;
    }
    public void setAttributeName(String attributeName) 
    {
        this.attributeName = attributeName;
    }

    public String getAttributeName() 
    {
        return attributeName;
    }
    public void setAttributeValue(String attributeValue) 
    {
        this.attributeValue = attributeValue;
    }

    public String getAttributeValue() 
    {
        return attributeValue;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attributeId", getAttributeId())
            .append("apartmentId", getApartmentId())
            .append("attributeName", getAttributeName())
            .append("attributeValue", getAttributeValue())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
